package it.uniba.di.mas.jpnde.data;

import jade.util.leap.List;
import jade.util.leap.Serializable;

public class Transaction implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public static final String XMLNODE="transaction";
	public static final String XMLNODES="transactions";
	public static final String XMLNODE_ID="id";
	public static final String XMLNODE_DESCRIPTION="description";
	public static final String XMLNODE_IMPL_CLASS="impl-class";
	public static final String XMLNODE_CONTAINER="container";
	
	private String id="";
	private String description="";
	private String implClass="";
	private String container="";
	
	private List preset=null;
	private List postset=null;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getImplClass() {
		return implClass;
	}
	public void setImplClass(String implClass) {
		this.implClass = implClass;
	}
	
	public String getContainer() {
		return container;
	}
	public void setContainer(String container) {
		this.container = container;
	}
	public List getPreset() {
		return preset;
	}
	public void setPreset(List preset) {
		this.preset = preset;
	}
	public List getPostset() {
		return postset;
	}
	public void setPostset(List postset) {
		this.postset = postset;
	}
	@Override
	public String toString() {
		return "Transaction [id=" + id + ", description=" + description
				+ ", implClass=" + implClass + ",container=" + container+",postset=" + postset
				+ ", preset=" + preset + "]";
	}
	
}
